package com.wisdytech.linkdcs.equipLifeCycle.malfunction.service;

import com.wisdytech.linkdcs.equipLifeCycle.malfunction.model.MAttachment;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dailibo
 * @since 2018-06-11
 */
public interface IMAttachmentService  {
	
	/**
	 * 保存故障附件
	 * @return
	 */
	public String saveFile(MultipartFile file);
	
	/**
	 * 保存附件记录
	 * @param attachment
	 * @return
	 */
	public boolean add(MAttachment attachment);
	
	public MAttachment getRecord(String recordId);

}
